package com.cjm.one.model.system.enums;

import com.baomidou.mybatisplus.annotation.EnumValue;
import com.cjm.one.model.base.BaseEnum;
import lombok.AllArgsConstructor;


public enum GenderEnum implements BaseEnum {

    man(0, "男"),
    woman(1, "女"),
    unknown(2, "保密未知");
       GenderEnum(int code, String message) {
         this.code = code;
         this.message = message;
     }

    @EnumValue
    private int code;
    private String message;

    @Override
    public int getCode() {
        return code;
    }

    @Override
    public String getMessage() {
        return message;
    }
}
